package org.example.rowing.vo;

import lombok.Data;
import org.example.rowing.domain.Athlete;
import org.example.rowing.domain.Race;
import org.example.rowing.domain.RegistrationWithAthlete;
import org.example.rowing.domain.Team;

import java.util.List;

@Data
public class RegistrationVO {
    private Long registrationId;
    private Race race;
    private Team team;
    private List<RegistrationWithAthlete> athletes;
    // 仅用作查询条件
    private Long teamId;
    private String teamName;
    private Long raceId;

    public RegistrationVO() {}

    public RegistrationVO(Long registrationId, Race race, Team team, List<RegistrationWithAthlete> athletes) {
        this.registrationId = registrationId;
        this.race = race;
        this.team = team;
        this.athletes = athletes;
    }
}
